Skip to content

revert(serve): restore serve_command.py to main state#124

Closed
bedus-creation wants to merge 1 commit into
fastapi-serve-commandfrom
task/revert-serve-to-main
Closed

revert(serve): restore serve_command.py to main state#124
bedus-creation wants to merge 1 commit into
fastapi-serve-commandfrom
task/revert-serve-to-main

Conversation

@bedus-creation

Copy link
Copy Markdown
Contributor

Summary

  • Reverts serve_command.py back to the clean origin/main state
  • Removes resolve_host_port() method and Uri import added in commits f9f533c5 and 51d4d92e
  • Restores the simpler direct config-resolution pattern: CLI flag > fastapi config > built-in default
  • The _DEFAULT_HOST / _DEFAULT_PORT module-level constants are also removed

Why

PR #122 (fastapi-serve-commandmain) introduced significant complexity to serve_command.py via a layered Uri-based host/port resolution chain. Task #196 requests this file be reverted to the state on main before any merging happens.

Test plan

  • File matches git show origin/main:fastapi_startkit/src/fastapi_startkit/fastapi/commands/serve_command.py exactly
  • No Uri / fastapi_startkit.support imports remain in the serve command
  • Existing tests on fastapi-serve-command continue to pass

🤖 Generated with Claude Code

Removes the `resolve_host_port()` method and `Uri` dependency that were
added in PR #122. Restores the simpler, direct config-resolution approach
that lives on origin/main (CLI flag > fastapi config > built-in default).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant